{% extends "common.html" %}
{% block css %}
<script src="/static/js/laydate.js"></script>
<link href="/static/css/bootstrap.css" rel="stylesheet" type="text/css">
{% endblock %}
{% load i18n %}
{% block content %}
<style type="text/css">
  .laydate_box, .laydate_box * {
        box-sizing:content-box;
    }
</style>

<div class="wrap" style="width:1200px ">
    <div class="form-horizontal text-left">
         <form method="post" action="{% url "education" %}" id="pickupForm">
       {% csrf_token %}
      <div class="form-group">
       
      </div>
      <div class="form-group">
        <label class="col-sm-1 control-label">{% trans "school name" %}:</label>
        <div class="col-sm-4">
          <input type="text" class="form-control" name="name" value="{{name}}">
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-1 control-label">{% trans "major" %}:</label>
        <div class="col-sm-4">
          <input type="text" class="form-control" name="major" value="{{major}}">
        </div>
      </div>

      <div class="form-group">
      <label class="col-sm-1 control-label">{% trans "classify" %}:</label>

       <div class="col-sm-2" id="">
       <select class="form-control" name="education">111{{degree}}222
       {% for x,y in educationList %}
		 {% if x != 5  %}
         <option value="{{x}}" {% if x == education %}selected="selected"{% endif %}>{% trans y %}</option>
		 {% endif %} 
       {% endfor %}
        
         
       </select>
       </div>
     

       

      </div>

      <div class="form-group ">
    <label class="col-sm-1 control-label">{% trans "Time at school" %}:</label>
        <div class="input-group col-sm-4" style="padding-left: 15px;">
          
  <input type="text" class=" form-control col-sm-2" name="startTime" value="{{startTime|date:"Y-m-d"}}" onclick="laydate()">
       
           <div class="input-group-addon">~</div>
       
    <input type="text" class="form-control col-sm-4" name="endTime" value="{{endTime|date:"Y-m-d"}}" onclick="laydate()">
      

        </div>


      </div>
      

     <input type="hidden" name="id" value="{{id}}">

      

      


    

      

      





      

      

      

  
<div class="form-group">
        <label class="col-sm-1 control-label"></label>
        <div class="col-sm-2">
         <input class="btn btn-default blue col-sm-6"  type="submit" value="{% trans "submit" %}">

        </div>
      </div>
   </form>

    </div>



 </div>  
 </form>
<script type="text/javascript">
$(document).ready(function() {
    $('#pickupForm')
        .bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                major: {
                    message: 'The postal code is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "major" %}{% trans "is required and cannot be empty" %}'
                        },
                       
                      
                    }
                },
                 name: {
                    message: 'The name is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "school name" %} {% trans "is required and cannot be empty" %}'
                        },
                     
                    }
                },
                
               


            }
        })
      })
  </script>



  {% endblock %}  